package org.jeecg.common.modules.makeAppointment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 配置预约子表
 * @Author: jeecg-boot
 * @Date:   2021-09-01
 * @Version: V1.0
 */
@Data
@TableName("make_appointment_info")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="make_appointment_info对象", description="配置预约子表")
public class MakeAppointmentInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**主表id*/
	@Excel(name = "主表id", width = 15)
    @ApiModelProperty(value = "主表id")
    private String makeAppointmentId;
	/**开始工作时间*/
	@Excel(name = "开始工作时间", width = 20, format = "HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    @DateTimeFormat(pattern="HH:mm")
    @ApiModelProperty(value = "开始工作时间")
    private Date startTime;
	/**结束工作时间*/
	@Excel(name = "结束工作时间", width = 20, format = "HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    @DateTimeFormat(pattern="HH:mm")
    @ApiModelProperty(value = "结束工作时间")
    private Date endTime;
	/**openid*/
	@Excel(name = "openid", width = 15)
    @ApiModelProperty(value = "openid")
    private String openid;
	/**预约状态0-未使用，1-已使用*/
	@Excel(name = "预约状态0-未使用，1-已使用", width = 15)
    @ApiModelProperty(value = "预约状态0-未使用，1-已使用")
    private Integer status;
	/**伪删除0-未删除，1-已删除*/
	@Excel(name = "伪删除0-未删除，1-已删除", width = 15)
    @ApiModelProperty(value = "伪删除0-未删除，1-已删除")
    private Integer invalid;
    /**医生Id*/
    @Excel(name = "医生Id", width = 15)
    @ApiModelProperty(value = "医生Id")
    private String doctorId;
    /**医生姓名*/
    @Excel(name = "医生姓名", width = 15)
    @ApiModelProperty(value = "医生姓名")
    private String doctorName;
    /**日期*/
    @Excel(name = "日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "日期")
    private Date date;
}
